import XZButton from './components/Button'
import XZButtonGroup from './components/ButtonGroup'
import XZLink from './components/Link'
import XZInput from './components/Input'
import XZInputGroup from './components/InputGroup'
import XZSelect from './components/Select'

const prefix = 'El'

const components = [
    XZButton,
    XZButtonGroup,
    XZLink,
    XZInput,
    XZInputGroup,
    XZSelect
]

const install = (app) => {
    components.forEach(component => {
        app.component(`${prefix}${component.name}`,component)
    })
}

const xiaozhu = {
    version: '1.0.0',
    install
}

export default xiaozhu